<script lang="ts" setup>
defineProps({
    head: {
        type: String,
        default: '#icon-'
    },
    name: {
        type: String
    },
    width: {
        type: String,
        default: '16px'
    },
    height: {
        type: String,
        default: '16px'
    },
    color: {
        type: String,
        default: ''
    }
})
</script>
<template>
    <div>
        <svg :style="{ width: width, height: height }">
            <use :xlink:href="head + name" :fill="color"></use>
        </svg>
    </div>
</template>

<style scoped></style>